Skip to content

feat!: stop sending raw state to the model#3

Merged
cahaseler merged 1 commit intomainfrom
remove-state-from-model
Mar 11, 2026
Merged

feat!: stop sending raw state to the model#3
cahaseler merged 1 commit intomainfrom
remove-state-from-model

Conversation

@cahaseler
Copy link
Owner

Summary

  • State is no longer serialized into the user message sent to the LLM
  • State is only passed to instructions(state) and validWhen(state) — consumer controls what the model sees
  • Removed state from TokenBudgets (breaking change)

BREAKING CHANGE

TokenBudgets no longer has a state field. Remove it from your budgets config.

Test plan

  • 75 tests pass
  • Lint clean
  • Type check clean
  • Assembler test verifies state is NOT in user message

State is now only used as input to instructions(state) and
validWhen(state). The consumer controls what the model sees
entirely through the instructions function.

BREAKING CHANGE: TokenBudgets no longer has a "state" field.
Remove "state" from your budgets config.
@cahaseler cahaseler merged commit f0fcb47 into main Mar 11, 2026
1 check passed
@github-actions
Copy link

🎉 This PR is included in version 2.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant